﻿@model HanGu.Entity.TravelStudy
@{
    ViewBag.Title = "游学九州";
    Layout = "~/Views/Shared/Main.cshtml";
    TempData["sidecalss"] = "EveryDayWisdom";

    var Traveling = ViewData["Traveling"] as HanGu.Entity.TravelStudy ?? new HanGu.Entity.TravelStudy();
    var TravelPlans = ViewData["TravelPlans"] as List<HanGu.Entity.TravelStudy>;
    //var TravelIsTop=ViewData["TravelIsTop"]  as List<HanGu.Entity.TravelStudy>;
    var SearchParma = ViewData["SearchParma"] as HanGu.Entity.UniversallySearchParam ?? new HanGu.Entity.UniversallySearchParam();

}
@section Header
{
    <style>
        #partContent
        {
            width: 100%;
        }
        .movieContain
        {
            width: 100%;
            margin-top: 5px;
        }
        .ContentTitleRight
        {
            width: 300px;
        }
        #partContent .content
        {
            padding-left: 0px;
        }
        .ContentTitleLeft
        {
            padding-left: 30px;
        }
    </style>
}
@section Banner
{
    @Html.Partial("Banner")
}
@section Content{
    <form id="TravelListpagerForm" method="post" action="/Travel/List">
    <input type="hidden" name="pageNum" value="@SearchParma.Pagination.CurrentIndex" />
    <input type="hidden" name="PageTotal" value="@SearchParma.Pagination.PageTotal" />
    <input type="hidden" name="RowCount" value="@SearchParma.Pagination.RowCount" />
    <input type="hidden" name="orderField" value="${param.orderField}" />
    <input type="hidden" name="Title" value="@SearchParma.Ttile" />
    <input type="hidden" name="StarTime" value="@SearchParma.StarDateTime" />
    <input type="hidden" name="EndTime" value="@SearchParma.EndDateTime" />
    </form>
    <div class="contentLeft" style="width: 100%;">
        <table cellpadding="0" cellspacing="0" id="partContent">
            <tr>
                <td>
                    <div class="ContentTitle">
                        <div class="ContentTitleLeft" style="padding-left: 0px">
                            <img src="/Content/images/TravelTitle.gif" width="145" height="26" alt=""></div>
                        <div class="ContentTitleRight" style="padding-top: 0px">
                            <input type="text" name="key" class="textInput focus" value="@SearchParma.Ttile" />
                            <input type="button" class="buttonContent" value="搜索" onclick="Search()" />
                            <script>
                                function Search() {
                                    var pageform = $('#@ViewData["pageform"]');
                                    var keyVal = $("input[name='key']").val();
                                    $("input[name='Title']", pageform).val(keyVal);
                                    $("input[name='pageNum']", pageform).val(1);
                                    pageform.submit();
                                }
                            </script>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="content">
                    <div class="detail">
                        @TempData["ModuleDetail"]
                    </div>
                    <div class="clear">
                    </div>
                    <div class="Educationlist" style="padding-left: 0">
                        <div class="contentLeft" style="width: 360px;">
                            <table cellpadding="0" cellspacing="0" id="partContent">
                                <tr>
                                    <td style="vertical-align: bottom; padding-top: 5px">
                                        <div>
                                            <div class="ContentTitleLeft">
                                                <img src="/Content/images/travelstudyindex.gif" alt=""></div>
                                            <div class="ContentTitleRight" style="width: 80px">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="content">
                                        <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="BorderTopLeft">
                                                </td>
                                                <td class="BorderTopMiddle">
                                                </td>
                                                <td class="BorderTopRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderMiddleLeft">
                                                </td>
                                                <td style="height: 290px; overflow: hidden; vertical-align: top">
                                                    <!--Content_S-->
                                                    <div class="movieContain">
                                                        <div class="parent_panel">
                                                            <div class="movie_image_panel">
                                                                @if (!string.IsNullOrEmpty(Traveling.TitlePic))
                                                                {
                                                                    <a href="/Travel/Detail/@Traveling.ID">
                                                                        <img src="@Traveling.TitlePic" alt="@Traveling.Title" /></a>
                                                                }
                                                            </div>
                                                            <div class="movie_text_panel">
                                                                <ul>
                                                                    <li><span formatdate="yy年MM月dd日">@Traveling.TravelTime</span> -<span formatdate="yy年MM月dd日">@Traveling.TraveEndlTime</span>
                                                                    </li>
                                                                    <li><a href="/Travel/detail/@Traveling.ID">@Traveling.Title</a></li>
                                                                </ul>
                                                            </div>
                                                            <div class="clear">
                                                            </div>
                                                            <div style=" margin:3px; height:180px;overflow: hidden;text-overflow:ellipsis;white-space:normal;" title="@Hangu.WebClient.MyHtmlHelper.FormatHtml(@Traveling.Summary)">
                                                                @Hangu.WebClient.MyHtmlHelper.FormatHtml(@Traveling.Summary)</div>
                                                        </div>
                                                    </div>
                                                    <!--Content_E-->
                                                </td>
                                                <td class="BorderMiddleRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderBottomLeft">
                                                </td>
                                                <td class="BorderBottomMiddle">
                                                </td>
                                                <td class="BorderBottomRight">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="contentRight" style="width: 360px;">
                            <table cellpadding="0" cellspacing="0" id="partContent">
                                <tr>
                                    <td style="vertical-align: bottom; padding-top: 5px">
                                        <div>
                                            <div class="ContentTitleLeft">
                                                <img src="/Content/images/travelplan.gif" alt=""></div>
                                            <div class="ContentTitleRight" style="width: 80px; margin-right: 20px">
                                                <a href="/Travel/List"><span style="color: Red; text-decoration: none">更多》</span></a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="content">
                                        <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="BorderTopLeft">
                                                </td>
                                                <td class="BorderTopMiddle">
                                                </td>
                                                <td class="BorderTopRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderMiddleLeft">
                                                </td>
                                                <td style="height: 290px; overflow: hidden; vertical-align: top">
                                                    <!--Content_S-->
                                                    @foreach (var item in TravelPlans)
                                                    {
                                                        <div class="movieContain">
                                                            <div class="parent_panel">
                                                                <div class="movie_image_panel">
                                                                    @if (!string.IsNullOrEmpty(item.TitlePic))
                                                                    {
                                                                        <a href="/Travel/Detail/@item.ID">
                                                                            <img src="@item.TitlePic" alt="@item.Title" style="height:80px"/></a>
                                                                    }
                                                                </div>
                                                                <div class="movie_text_panel">
                                                                    <ul>
                                                                        <li><span formatdate="yy年MM月dd日">@Traveling.TravelTime</span> -<span formatdate="yy年MM月dd日">@Traveling.TraveEndlTime</span>
                                                                            <li><a href="/Travel/detail/@item.ID">@item.Title</a></li>
                                                                    </ul>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    }
                                                    <!--Content_E-->
                                                </td>
                                                <td class="BorderMiddleRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderBottomLeft">
                                                </td>
                                                <td class="BorderBottomMiddle">
                                                </td>
                                                <td class="BorderBottomRight">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="clear" />
                    <div class="wonderfulstory">
                        <table cellpadding="0" cellspacing="0" id="partContent">
                            <tr>
                                <td style="vertical-align: bottom; padding-top: 5px">
                                    <div>
                                        <div class="ContentTitleLeft" style="padding-top: 20px">
                                            <img src="/Content/images/wonderfulstory.gif" alt=""></div>
                                        <div class="ContentTitleRight" style="width: 80px; margin-right: 20px; padding-top: 20px">
                                            <a href="/Rostrums"><span style="color: Red; text-decoration: none">更多》</span></a>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="content">
                                    <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="BorderTopLeft">
                                            </td>
                                            <td class="BorderTopMiddle">
                                            </td>
                                            <td class="BorderTopRight">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="BorderMiddleLeft">
                                            </td>
                                            <td id="">
                                                <!--Content_S-->
                                                @Html.Partial("Marquee")
                                                <!--Content_E-->
                                            </td>
                                            <td class="BorderMiddleRight">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="BorderBottomLeft">
                                            </td>
                                            <td class="BorderBottomMiddle">
                                            </td>
                                            <td class="BorderBottomRight">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
}
@section Side{
    @Html.Partial("Side")
}
